package com.woniuxy.woniufp.common.model.exceptions;

import com.woniuxy.woniufp.common.model.result.enums.IErrorCode;

public class BusinessException extends RuntimeException{
    IErrorCode errorCode ;

    public IErrorCode getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(IErrorCode errorCode) {
        this.errorCode = errorCode;
    }

    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(IErrorCode errorCode){
        this.errorCode = errorCode;
    }
}
